﻿using Core.ECS.Systems;
using OpenTK.Mathematics;
using OpenTK.Windowing.GraphicsLibraryFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Core.ECS.Components
{
    public class TestBehavior : CBehavior
    {
        public override void Start()
        {
            Transform.Rotate(Vector3.UnitY,30);
        }
        public override void Update()
        {
            if (Input.GetKeyPressed(Keys.Space))
            {
                Transform.Rotate(Vector3.UnitY, 30);
            }
            if (Input.GetKeyPressed(Keys.A))
            {
                Transform.LocalPosition += Vector3.UnitX;
            }
            if(Input.GetKeyPressed(Keys.D))
            {
                Transform.LocalPosition -= Vector3.UnitX;
            }
        }
    }
}
